package com.eastfair.common.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 系统附件表
 * </p>
 *
 * @author ligang
 * @since 2022-08-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AttachmentFileSaveDTO", description = "系统附件表")
public class AttachmentFileSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 客户id，线索id，联系人id，场地id
     */
    @ApiModelProperty(value = "客户id，线索id，联系人id，场地id")
    private Long businessId;
    /**
     * 模块名(枚举维护)
     */
    @ApiModelProperty(value = "模块名(枚举维护)")
    @Size(max = 255, message = "模块名(枚举维护)长度不能超过255")
    private String businessType;
    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    @Size(max = 255, message = "附件名称长度不能超过255")
    private String attachmentName;
    /**
     * 附件格式
     */
    @ApiModelProperty(value = "附件格式")
    @Size(max = 10, message = "附件格式长度不能超过10")
    private String attachmentSubfix;
    /**
     * 附件大小(单位kb)
     */
    @ApiModelProperty(value = "附件大小(单位kb)")
    @Size(max = 20, message = "附件大小(单位kb)长度不能超过20")
    private Long attachmentSize;
    /**
     * 附件地址
     */
    @ApiModelProperty(value = "附件地址")
    @Size(max = 255, message = "附件地址长度不能超过255")
    private String attachmentUrl;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;
    /**
     * 团队ID
     */
    @ApiModelProperty(value = "团队ID")
    private Long teamId;

}
